@import (reference) "~weaver-mobile/dist/weaver-mobile.less";

.fontsize-10px {
  font-size: 10px;
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -o-transform: scale(0.8);
  -ms-transform: scale(0.8);
  transform: scale(0.8);
}

.hrm-sign-v2{
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;

  &>div{
    width: 100%;
    padding: 0px 16px;
  }

  .header {
    border-bottom: 1px solid #e9e9e9;
    overflow: hidden;

    .calendar {
      width: 100%;
      height: 45px;
      line-height: 45px;

      &>div {
        margin-right: 8px;
        font-size: 17px;
        color: #333333;
        float: left;
      }

      .icon {
        position: relative;
        top: 12px;
        float: left;
        margin-right: 8px;
      }

      .arrow {
        float: right;
        position: relative;
        top: 12px;
      }
    }

    .schedual {
      clear: both;
      display: none;
      word-break: break-all;
      padding-bottom: 10px;
      font-size: 13px;
      color: #999;
    }

    .schedual-show {
      display: block;
    }
  }

  .content {
    position: relative;
    flex: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    height: 0;
    padding: 0px 16px 0px 11px;

    .sign-data-list {
      height: 100%;
      padding-top: 16px;

      .am-timeline {
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;

        .am-timeline-item{
          &:first-child{
            .am-timeline-item-tail {
              top: -16px;
              height: calc(~"100% + 16px");
            }
          }

          .am-timeline-item-tail {
            border-color: #e6e6e6;
          }
          

          .am-timeline-item-head-custom {
            top: 9px;
          }
        }

        .am-timeline-item-last{
          flex: auto;
          .am-timeline-item-tail {
            display: inherit !important;
            top: 0px;
          }
        }
      }
    }

    .dot {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      padding-top: 3px;
      margin: 3px 0px;
      color: #fff;
    }

    .dot-active {
      background: #61a8f5;
      border-color: #61a8f5;
    }

    .dot-default {
      background: #b4b4b4;
      border-color: #61a8f5;
    }

    .sign-item {
      padding-left: 10px;
      &>div{
        margin-bottom: 10 * @hd;
        &:first-child{
          color: #999999;
        }
      }

      .signData{
        &>div{
          margin-bottom: 10 * @hd;
        }
        .signDate{
          height: 24px;
          line-height: 24px;
          position: relative;
          
          .signTime{
            float: left;
            margin-right: 10px;
          }
          .status{
            float: left;
            margin-top: 3px;
            padding: 0px 5px 0px 5px;
          }
  
          .abnormal, .normal, .autoSign{
            border-radius: 3px;
            height: 18px;
            line-height: 18px;
            &>div{
                .fontsize-10px;
            }
          }
    
          .abnormal{
            color: #FF913F;
            border: 1px solid #FF913F;
          }
          .normal{
            color: #999999;
            border: 1px solid #E6E6E6;
          }
          .autoSign{
            color: #61A8F5;
            border: 1px solid #61A8F5;
          }
        }
  
        .position{
          // clear: both;
          height: auto;
          color: #999999;
  
          .positionIcon{
              margin-right: 4px;
          }
        }
  
        .resign{
          height: 24px;
          line-height: 24px;
          margin-left: 23px;
          color: #61A8F5;
        }
      }

      .signBtn{
        height: auto;
        padding-left: 0px;

        .btn{
          width: 110px;
          height: 110px;
          border-radius: 50%;
          background: #61A8F5;
          margin: 0px auto;
          text-align: center;
          color: #fff;

          .lbl{
            font-size: @font-size-heading;
            line-height: 20px;
            padding-top: 35px;
          }
          .time{
            font-size: @font-size-base;
            line-height: 25px;
            color: #fff;
          }
          
          &-abnormal{
            background: #F5BF61;
          }
          &-outside{
            background: #76CC68;
          }
        }
        
        .msg{
          text-align: center;
          height: auto;
          display: flex;

          div{
            margin: 0px 5px 0px 5px;

            &:last-child{
              color: #61A8F5;
            }
          }

          .info{
            width: 0px;
            flex: auto;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;

            span:first-child{
              margin-right: 5px;
            }
            span:last-child{
              position: relative;
              top: -5px;
            }
          }
        }
      }
    }
  }

  .footer {
    overflow: hidden;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;

    &>div {
      padding: 5px 0px;
      .workflow-link {
        cursor: pointer;
        color: #2d7ad8;
      }
    }
  }
}